package hot;

import java.util.Scanner;

public class Fact {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNextLine()) {
            String[] strs = s.nextLine().split("<br/>");
            for(int k = 0; k < strs.length; k++) {
                int num = Integer.parseInt(strs[k]);
                StringBuilder sb = new StringBuilder();
                sb.append(num +" " +"=");
                if(isSu(num)) {
                    sb.append(" " +num);
                    if(k < strs.length - 1) sb.append("<br/>");
                    System.out.print(sb.toString());
                    break;
                }else {
                    for(int i = 2; i * i <= num; i++) {
                        if(isSu(i) && num % i == 0) {
                            int temp = num;
                            int sum = temp / i;
                            sb.append(" " +i);
                            while(!isSu(sum)) {
                                int ret = child(sum);
                                sb.append(" " +"*");
                                sb.append(" " +ret);
                                sum /= ret;
                            }
                            sb.append(" " +"*");
                            sb.append(" " +sum);
                            if(k < strs.length - 1) sb.append("<br/>");
                            System.out.print(sb.toString());
                            break;
                        }
                    }
                }
            }
            System.out.println();
        }
    }
    public static int child(int num) {
        for(int i = 2; i * i <= num; i++) {
            if(num % i == 0) return i;
        }
        return -1;
    }
    public static boolean isSu(int num) {
        for(int i = 2; i * i <= num; i++) {
            if(num % i == 0) return false;
        }
        return true;
    }
}
